package com.dong.policy.runner;

import com.dong.policy.task.MyAsynTask;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author zhaodongchao
 * @date 2020/11/17 16:09
 */
@Component
public class FooRunner implements ApplicationRunner {
    @Resource
    private MyAsynTask myAsynTask;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        myAsynTask.test();

    }
}
